namespace DataCollectionorTest.EF
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("gateway.received_msg")]
    public partial class received_msg
    {
        public long id { get; set; }

        public DateTime received_datetime { get; set; }

        [Required]
        [StringLength(2048)]
        public string received_string { get; set; }

        [Column(TypeName = "bit")]
        public bool is_length_right { get; set; }

        [StringLength(17)]
        public string qn { get; set; }

        [StringLength(4)]
        public string cn { get; set; }

        [Required]
        [StringLength(27)]
        public string mn { get; set; }

        [Required]
        [StringLength(20)]
        public string processed_flag { get; set; }

        [Required]
        [StringLength(20)]
        public string processed_flag_2 { get; set; }

        [Required]
        [StringLength(20)]
        public string processed_flag_3 { get; set; }

        public DateTime? datatime { get; set; }
    }
}
